package univ.lille1.fr.rest.bean;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "user")
public class UserBean {
	private String user;
	private String password;
	private String host;
	private String port;
	private boolean isConnected;
	private String currentPath;
	
	public UserBean(String user, String password) {
		this.user = user;
		this.password = password;
		this.isConnected = false;
		this.currentPath = "/";
	}
	
	public UserBean() {}
	
	@XmlElement
	public String getUser() {
		return user;
	}
	
	public void setUser(String user) {
		this.user = user;
	}
	
	@XmlElement
	public String getPassword() {
		return password;
	}
	
	public void setPassword(String password) {
		this.password = password;
	}
	
	@XmlAttribute
	public boolean isConnected() {
		return isConnected;
	}
	
	public void setConnected(boolean isConnected) {
		this.isConnected = isConnected;
	}
	
	@XmlElement
	public String getCurrentPath() {
		return currentPath;
	}

	public void setCurrentPath(String currentPath) {
		this.currentPath = currentPath;
	}

	@XmlElement
	public String getHost() {
		return host;
	}

	public void setHost(String host) {
		this.host = host;
	}

	@XmlElement
	public String getPort() {
		return port;
	}

	public void setPort(String port) {
		this.port = port;
	}
}
